package com.yicong.ants.bean.order;

/**
 * 购买历史 （二次消费，特惠景区）
 *
 * @author cchao
 * @version 2019-08-23.
 */
public class ScenicOrder{

    /**
     * id : 8
     * scenic_id : 856
     * scenic_name : 重庆鳄鱼中心
     * price : 45.00
     * coin : 2.25000
     * num : 1
     * pay_status : 10
     * pay_status_text : 已支付
     * ticket_status : 0
     * ticket_status_text : 待出票
     * visit_date : 2020-08-27
     * create_time : 2020-08-25 12:44:02
     */

    private String id;
    private String scenic_name;
    private String scenic_id;
    private String price;
    private String coin;
    private String longitude;
    private String latitude;
    private String thumbnail;
    private String address;
    private String ticket_name;
    private int num;
    private int type;
    private int pay_status;
    private String pay_status_text;
    private int ticket_status;
    private String ticket_status_text;
    private String visit_date;
    private String create_time;

    public ScenicOrder() {
    }

    public String getId() {
        return this.id;
    }

    public String getScenic_name() {
        return this.scenic_name;
    }

    public String getScenic_id() {
        return this.scenic_id;
    }

    public String getPrice() {
        return this.price;
    }

    public String getCoin() {
        return this.coin;
    }

    public String getLongitude() {
        return this.longitude;
    }

    public String getLatitude() {
        return this.latitude;
    }

    public String getThumbnail() {
        return this.thumbnail;
    }

    public String getAddress() {
        return this.address;
    }

    public String getTicket_name() {
        return this.ticket_name;
    }

    public int getNum() {
        return this.num;
    }

    public int getType() {
        return this.type;
    }

    public int getPay_status() {
        return this.pay_status;
    }

    public String getPay_status_text() {
        return this.pay_status_text;
    }

    public int getTicket_status() {
        return this.ticket_status;
    }

    public String getTicket_status_text() {
        return this.ticket_status_text;
    }

    public String getVisit_date() {
        return this.visit_date;
    }

    public String getCreate_time() {
        return this.create_time;
    }

    public ScenicOrder setId(String id) {
        this.id = id;
        return this;
    }

    public ScenicOrder setScenic_name(String scenic_name) {
        this.scenic_name = scenic_name;
        return this;
    }

    public ScenicOrder setScenic_id(String scenic_id) {
        this.scenic_id = scenic_id;
        return this;
    }

    public ScenicOrder setPrice(String price) {
        this.price = price;
        return this;
    }

    public ScenicOrder setCoin(String coin) {
        this.coin = coin;
        return this;
    }

    public ScenicOrder setLongitude(String longitude) {
        this.longitude = longitude;
        return this;
    }

    public ScenicOrder setLatitude(String latitude) {
        this.latitude = latitude;
        return this;
    }

    public ScenicOrder setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
        return this;
    }

    public ScenicOrder setAddress(String address) {
        this.address = address;
        return this;
    }

    public ScenicOrder setTicket_name(String ticket_name) {
        this.ticket_name = ticket_name;
        return this;
    }

    public ScenicOrder setNum(int num) {
        this.num = num;
        return this;
    }

    public ScenicOrder setType(int type) {
        this.type = type;
        return this;
    }

    public ScenicOrder setPay_status(int pay_status) {
        this.pay_status = pay_status;
        return this;
    }

    public ScenicOrder setPay_status_text(String pay_status_text) {
        this.pay_status_text = pay_status_text;
        return this;
    }

    public ScenicOrder setTicket_status(int ticket_status) {
        this.ticket_status = ticket_status;
        return this;
    }

    public ScenicOrder setTicket_status_text(String ticket_status_text) {
        this.ticket_status_text = ticket_status_text;
        return this;
    }

    public ScenicOrder setVisit_date(String visit_date) {
        this.visit_date = visit_date;
        return this;
    }

    public ScenicOrder setCreate_time(String create_time) {
        this.create_time = create_time;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ScenicOrder)) return false;
        final ScenicOrder other = (ScenicOrder) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final Object this$scenic_name = this.getScenic_name();
        final Object other$scenic_name = other.getScenic_name();
        if (this$scenic_name == null ? other$scenic_name != null : !this$scenic_name.equals(other$scenic_name))
            return false;
        final Object this$scenic_id = this.getScenic_id();
        final Object other$scenic_id = other.getScenic_id();
        if (this$scenic_id == null ? other$scenic_id != null : !this$scenic_id.equals(other$scenic_id))
            return false;
        final Object this$price = this.getPrice();
        final Object other$price = other.getPrice();
        if (this$price == null ? other$price != null : !this$price.equals(other$price))
            return false;
        final Object this$coin = this.getCoin();
        final Object other$coin = other.getCoin();
        if (this$coin == null ? other$coin != null : !this$coin.equals(other$coin)) return false;
        final Object this$longitude = this.getLongitude();
        final Object other$longitude = other.getLongitude();
        if (this$longitude == null ? other$longitude != null : !this$longitude.equals(other$longitude))
            return false;
        final Object this$latitude = this.getLatitude();
        final Object other$latitude = other.getLatitude();
        if (this$latitude == null ? other$latitude != null : !this$latitude.equals(other$latitude))
            return false;
        final Object this$thumbnail = this.getThumbnail();
        final Object other$thumbnail = other.getThumbnail();
        if (this$thumbnail == null ? other$thumbnail != null : !this$thumbnail.equals(other$thumbnail))
            return false;
        final Object this$address = this.getAddress();
        final Object other$address = other.getAddress();
        if (this$address == null ? other$address != null : !this$address.equals(other$address))
            return false;
        final Object this$ticket_name = this.getTicket_name();
        final Object other$ticket_name = other.getTicket_name();
        if (this$ticket_name == null ? other$ticket_name != null : !this$ticket_name.equals(other$ticket_name))
            return false;
        if (this.getNum() != other.getNum()) return false;
        if (this.getType() != other.getType()) return false;
        if (this.getPay_status() != other.getPay_status()) return false;
        final Object this$pay_status_text = this.getPay_status_text();
        final Object other$pay_status_text = other.getPay_status_text();
        if (this$pay_status_text == null ? other$pay_status_text != null : !this$pay_status_text.equals(other$pay_status_text))
            return false;
        if (this.getTicket_status() != other.getTicket_status()) return false;
        final Object this$ticket_status_text = this.getTicket_status_text();
        final Object other$ticket_status_text = other.getTicket_status_text();
        if (this$ticket_status_text == null ? other$ticket_status_text != null : !this$ticket_status_text.equals(other$ticket_status_text))
            return false;
        final Object this$visit_date = this.getVisit_date();
        final Object other$visit_date = other.getVisit_date();
        if (this$visit_date == null ? other$visit_date != null : !this$visit_date.equals(other$visit_date))
            return false;
        final Object this$create_time = this.getCreate_time();
        final Object other$create_time = other.getCreate_time();
        if (this$create_time == null ? other$create_time != null : !this$create_time.equals(other$create_time))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ScenicOrder;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * PRIME + ($id == null ? 43 : $id.hashCode());
        final Object $scenic_name = this.getScenic_name();
        result = result * PRIME + ($scenic_name == null ? 43 : $scenic_name.hashCode());
        final Object $scenic_id = this.getScenic_id();
        result = result * PRIME + ($scenic_id == null ? 43 : $scenic_id.hashCode());
        final Object $price = this.getPrice();
        result = result * PRIME + ($price == null ? 43 : $price.hashCode());
        final Object $coin = this.getCoin();
        result = result * PRIME + ($coin == null ? 43 : $coin.hashCode());
        final Object $longitude = this.getLongitude();
        result = result * PRIME + ($longitude == null ? 43 : $longitude.hashCode());
        final Object $latitude = this.getLatitude();
        result = result * PRIME + ($latitude == null ? 43 : $latitude.hashCode());
        final Object $thumbnail = this.getThumbnail();
        result = result * PRIME + ($thumbnail == null ? 43 : $thumbnail.hashCode());
        final Object $address = this.getAddress();
        result = result * PRIME + ($address == null ? 43 : $address.hashCode());
        final Object $ticket_name = this.getTicket_name();
        result = result * PRIME + ($ticket_name == null ? 43 : $ticket_name.hashCode());
        result = result * PRIME + this.getNum();
        result = result * PRIME + this.getType();
        result = result * PRIME + this.getPay_status();
        final Object $pay_status_text = this.getPay_status_text();
        result = result * PRIME + ($pay_status_text == null ? 43 : $pay_status_text.hashCode());
        result = result * PRIME + this.getTicket_status();
        final Object $ticket_status_text = this.getTicket_status_text();
        result = result * PRIME + ($ticket_status_text == null ? 43 : $ticket_status_text.hashCode());
        final Object $visit_date = this.getVisit_date();
        result = result * PRIME + ($visit_date == null ? 43 : $visit_date.hashCode());
        final Object $create_time = this.getCreate_time();
        result = result * PRIME + ($create_time == null ? 43 : $create_time.hashCode());
        return result;
    }

    public String toString() {
        return "ScenicOrder(id=" + this.getId() + ", scenic_name=" + this.getScenic_name() + ", scenic_id=" + this.getScenic_id() + ", price=" + this.getPrice() + ", coin=" + this.getCoin() + ", longitude=" + this.getLongitude() + ", latitude=" + this.getLatitude() + ", thumbnail=" + this.getThumbnail() + ", address=" + this.getAddress() + ", ticket_name=" + this.getTicket_name() + ", num=" + this.getNum() + ", type=" + this.getType() + ", pay_status=" + this.getPay_status() + ", pay_status_text=" + this.getPay_status_text() + ", ticket_status=" + this.getTicket_status() + ", ticket_status_text=" + this.getTicket_status_text() + ", visit_date=" + this.getVisit_date() + ", create_time=" + this.getCreate_time() + ")";
    }
}
